package com.runrunfast.fxj.config.redis;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: 陈胤训
 * @create: 2019-03-14 14:16
 **/
@Component
@ConfigurationProperties(prefix="csx.shiro.conf")
public class STShiroConf {
    /**
     * 机密算法名称
     */
    private String algorithmName;
    /**
     * 加密迭代次数
     */
    private int hashIterations;
    /**
     * 系统不拦截的路径
     */
    private List<String> sysanon;
    /**
     * 跨域配置
     */
    private List<String> allowedOrigins;
    /**
     * 登录路径
     */
    private String loginView;
    /**
     * 成功跳转路径
     */
    private String successUrl;
    /**
     * 是否开启token
     */
    private boolean openToken;
    /**
     * session时效
     */
    private Long sessionTimeout;
    /**
     * Cookie所属的网站域名
     */
    private String domain;
    /**
     * 写Cookie的程序的访问路径是
     */
    private String cookiePath;
    /**
     * cookie名称
     */
    private String cookieName;
    /**
     * 设置cookie时效
     */
    private int cookieMaxAge;
    /**
     * token名称
     */
    private String tokenName;
    /**
     * 是否单点登录
     */
    private boolean openSSO;

    public String getAlgorithmName() {
        return algorithmName;
    }
    public void setAlgorithmName(String algorithmName) {
        this.algorithmName = algorithmName;
    }
    public int getHashIterations() {
        return hashIterations;
    }
    public void setHashIterations(int hashIterations) {
        this.hashIterations = hashIterations;
    }
    public List<String> getSysanon() {
        return sysanon;
    }
    public void setSysanon(List<String> sysanon) {
        this.sysanon = sysanon;
    }
    public List<String> getAllowedOrigins() {
        return allowedOrigins;
    }
    public void setAllowedOrigins(List<String> allowedOrigins) {
        this.allowedOrigins = allowedOrigins;
    }
    public String getLoginView() {
        return loginView;
    }
    public void setLoginView(String loginView) {
        this.loginView = loginView;
    }
    public String getSuccessUrl() {
        return successUrl;
    }
    public void setSuccessUrl(String successUrl) {
        this.successUrl = successUrl;
    }
    public boolean isOpenToken() {
        return openToken;
    }
    public void setOpenToken(boolean openToken) {
        this.openToken = openToken;
    }
    public Long getSessionTimeout() {
        return sessionTimeout;
    }
    public void setSessionTimeout(Long sessionTimeout) {
        this.sessionTimeout = sessionTimeout;
    }
    public String getDomain() {
        return domain;
    }
    public void setDomain(String domain) {
        this.domain = domain;
    }
    public String getCookiePath() {
        return cookiePath;
    }
    public void setCookiePath(String cookiePath) {
        this.cookiePath = cookiePath;
    }
    public String getCookieName() {
        return cookieName;
    }
    public void setCookieName(String cookieName) {
        this.cookieName = cookieName;
    }
    public int getCookieMaxAge() {
        return cookieMaxAge;
    }
    public void setCookieMaxAge(int cookieMaxAge) {
        this.cookieMaxAge = cookieMaxAge;
    }
    public String getTokenName() {
        return tokenName;
    }
    public void setTokenName(String tokenName) {
        this.tokenName = tokenName;
    }
    public boolean isOpenSSO() {
        return openSSO;
    }
    public void setOpenSSO(boolean openSSO) {
        this.openSSO = openSSO;
    }



}
